import service from '@/utils/request'
// @Tags CaseFacts
// @Summary 创建案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFacts true "创建案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CF/createCaseFacts [post]
export const createCaseFacts = (data) => {
  return service({
    url: '/CF/createCaseFacts',
    method: 'post',
    data
  })
}

// @Tags CaseFacts
// @Summary 删除案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFacts true "删除案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CF/deleteCaseFacts [delete]
export const deleteCaseFacts = (params) => {
  return service({
    url: '/CF/deleteCaseFacts',
    method: 'delete',
    params
  })
}

// @Tags CaseFacts
// @Summary 批量删除案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CF/deleteCaseFacts [delete]
export const deleteCaseFactsByIds = (params) => {
  return service({
    url: '/CF/deleteCaseFactsByIds',
    method: 'delete',
    params
  })
}

// @Tags CaseFacts
// @Summary 更新案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFacts true "更新案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CF/updateCaseFacts [put]
export const updateCaseFacts = (data) => {
  return service({
    url: '/CF/updateCaseFacts',
    method: 'put',
    data
  })
}

// @Tags CaseFacts
// @Summary 用id查询案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CaseFacts true "用id查询案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CF/findCaseFacts [get]
export const findCaseFacts = (params) => {
  return service({
    url: '/CF/findCaseFacts',
    method: 'get',
    params
  })
}

// @Tags CaseFacts
// @Summary 分页获取案件事实管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取案件事实管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CF/getCaseFactsList [get]
export const getCaseFactsList = (params) => {
  return service({
    url: '/CF/getCaseFactsList',
    method: 'get',
    params
  })
}

// @Tags CaseFacts
// @Summary 不需要鉴权的案件事实管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CaseFactsSearch true "分页获取案件事实管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CF/getCaseFactsPublic [get]
export const getCaseFactsPublic = () => {
  return service({
    url: '/CF/getCaseFactsPublic',
    method: 'get',
  })
}
